//
// Created by 25429 on 2020/5/14.
//
#include "common_define.h"
#include "sirius_engine.h"

int main(int argc, char *argv[]) {
    util::Singleton<my_log>::Instance()->start();
    util::Singleton<time_cost>::Instance()->start();

    log4cplus::ConfigureAndWatchThread configure_thread(LOG4CPLUS_TEXT(LOG4CPLUS_CONFIG_PATH));
    LOG4CPLUS_INFO(MY_LOGGER, LOG4CPLUS_TEXT("=============== sirius_engine start ==============="));
    LOG4CPLUS_INFO(MY_LOGGER, "path: " << QDir::currentPath().toStdString());

    sirius_engine sirius;
    sirius.go();
    QCoreApplication a(argc, argv);
    auto exec = QCoreApplication::exec();
    LOG4CPLUS_INFO(MY_LOGGER, LOG4CPLUS_TEXT("=============== sirius_engine stop ==============="));
    return exec;
}